﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyHttp
{
    public class DependencyInjector
    {
        protected static DependencyInjector _default;
        protected static Dictionary<String, Object> _sharedServices;
        protected static Dictionary<String, Object> _services;

        public DependencyInjector()
        {
            if (null == _default) {
                _sharedServices = new Dictionary<String, Object>();
                _services = new Dictionary<String, Object>();
                _default = this;
            }
        }

        public bool set(String name, Object obj, bool shared) {
            return false;
        }

        public bool set(String name, Object obj) {
            return set(name, obj, true);
        }

        public Object get(String name, IDictionary<String, Object> parameters) {
            return null;
        }
    }
}
